package com.zhida.jiyangcenter.api

import androidx.annotation.Keep


@Keep
data class LoginEntity(
    val account: String?,
    val avatar: String?,
    val key_id: String?,
    val business_id: String?,
    val app_key: String?,
    val req_url: String?,
    val kind: Int?
)

@Keep
data class AddressEntity(
    val area: String?,
    val detail: String?,
    var is_default: Boolean?,
    val name: String?,
    val phone: String?,
    val uuid: String?
)

@Keep
data class AddressDetailsEntity(
    val area: String?,
    val detail: String?,
    val is_default: Boolean?,
    val name: String?,
    val phone: String?,
    val postcode: String?,
    val uuid: String?
)

@Keep
data class CollectionListEntity(
    val data: List<Data>?
) {
    @Keep
    data class Data(
        val uuid: String?,
        val picture: String?,
        val name: String?,
        val price: String?,
        val state: Boolean?
    )
}

@Keep
data class ProductOrderListEntity(
    val orders: Orders?,
    val total_count: Int?
) {
    @Keep
    data class Orders(
        val order: List<Order>?
    ) {
        @Keep
        data class Order(
            val actual_payment: Double?,
            val num_total: Int?,
            val order_uuid: String?,
            val logistics_name: String?,
            val logistics_yard: String?,
            val logistics_code: String?,
            val product: List<Product>?,
            val state: String?
        ) {
            @Keep
            data class Product(
                val name: String?,
                val num: Int?,
                val picture: String?,
                val price: Double?,
                val product_uuid: String?,
                val standard: String?
            )
        }
    }

}

@Keep
data class ExpressEntity(
    val EBusinessID: String?,
    val LogisticCode: String?,
    val OrderCode: String?,
    val Reason: String?,
    val ShipperCode: String?,
    val State: String?,
    val Success: Boolean?,
    val Traces: ArrayList<Trace>?
) {
    @Keep
    data class Trace(
        val AcceptStation: String?,
        val AcceptTime: String?,
        val Remark: String?
    )
}

@Keep
data class ProductOrderInfoEntity(
    val order: Order?
) {
    @Keep
    data class Order(
        val actual_payment: Double?,
        val address: Address?,
        val logistics_code: String?,
        val logistics_yard: String?,
        val logistics_name: String?,
        val order_code: String?,
        val order_uuid: String?,
        val product: List<Product>?,
        val state: String?,
        val store_phone: String?,
        val total_money: Double?,
        val up_money: Double?
    ) {
        @Keep
        data class Address(
            val address_uuid: String?,
            val detail_address: String?,
            val name: String?,
            val phone: String?
        )

        @Keep
        data class Product(
            val name: String?,
            val num: Int?,
            val picture: String?,
            val price: Double?,
            val product_uuid: String?,
            val standard_name: String?
        )
    }
}

@Keep
data class ServeOrderListEntity(
    val orders: Orders?,
    val total_count: Int?
) {
    @Keep
    data class Orders(
        val order: List<Order>?
    ) {
        @Keep
        data class Order(
            val actual_payment: String?,
            val order_uuid: String?,
            val serve: Serve?,
            val state: String?
        ) {
            @Keep
            data class Serve(
                val num: Int?,
                val picture: String?,
                val price: Double?,
                val serve_name: String?,
                val serve_uuid: String?,
                val total_num:Int?,
                val store_name: String?
            )
        }
    }
}

@Keep
data class ServeCodeEntity(val serve_code:String?)
@Keep
data class ServeOrderInfoEntity(
    val actual_payment: Double?,
    val order_code: String?,
    val order_uuid: String?,
    val serve: Serve?,
    val serve_code: String?,
    val state: String?,
    val store_name: String?,
    val total_money: Double?
) {
    @Keep
    data class Serve(
        val name: String?,
        val num: Int?,
        val picture: String?,
        val price: Double?,
        val serve_uuid: String?
    )
}

@Keep
data class CommentGoodsShowEntity(
    val name: String?,
    val num: Int?,
    val uuid: String?
)

@Keep
class AssessmentEntity : ArrayList<AssessmentEntityItem>()

@Keep
data class AssessmentEntityItem(
    val is_zheng: Boolean,
    val name: String,
    val type: Int
)

@Keep
data class PersonalInfoEntity(
    val area: String?,
    val avatar_path: String?,
    val gender: String?,
    val card_path:String?,
    val card_code:String?,
    val member: Member?,
    val nickname: String?,
    val phone: String?,
    val password:Boolean?,
    val pay_password:Boolean?,
    val pwd: String?
) {
    @Keep
    data class Member(
        val is_member: String?,
        val level: String? //1，体验卡，2钻石卡，3翡翠卡，4黄金卡
    )

}
@Keep
data class ReferralCodeEntity(val referral_code:String)
@Keep
data class UpdataEntity(
    val apk_path: String?,
    val code: Int?,
    val update_explain: String?,
    val version: String?
)
@Keep
data class DeviceListEntity(
    val name: String?,
    val picture: String?,
    val uuid: String?
)







